Skip to content

Add specification for message patches - #584

Draft
ttypic wants to merge 3 commits into
mainfrom
message-patch
Draft

ttypic wants to merge 3 commits into
mainfrom
message-patch

Conversation

@ttypic

@ttypic ttypic commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@ttypic ttypic changed the title message-patch Add specification for message patches Nov 24, 2026
ttypic and others added 3 commits November 24, 2026 11:07
Add a `MESSAGE_PATCH` message action, through which a message can
change individual values inside an existing message's JSON `data`
and individual fields of its `extras`, rather than replacing them
wholesale as `MESSAGE_UPDATE` does.

- `patchMessage()` is added to RSL15 and RTL32 alongside update,
  delete and append, sending the operations in the new TM2v
  `patches` field.
- New MessagePatches types (MPA, MPD, MPH, MPU, MPP) describe the
  data, header, userClaim and privileged operations. MPD3/MPD4 define
  how operation data is encoded on send and left as JSON text on
  receive.
- `Message.applyPatch` (TM9) lets users apply a received patch to
  their copy of the message. When the copy holds JSON as text, it
  edits the text the way Ably does, so the copy stays byte-for-byte
  identical to the stored message.
- The protocol doc describes the `patches` field, which is delivered
  from protocol version 7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cover `patchMessage()` over REST and realtime, the MessagePatches
types and their encoding, and `Message.applyPatch`, and record them
in the completion status matrix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
staging/pull/584 — 469337e8 Deployed Nov 24, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant